
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>后台管理</title>
<link rel="stylesheet" type="text/css" href="js/css/common.css" />
<link rel="stylesheet" type="text/css" href="js/css/main.css" />

<script type="text/javascript" src="js/js/libs/modernizr.min.js"></script>
<script src="js/jquery/jquery.min.js"></script>
<script src="js/laydate/laydate.js"></script>
<script src="js/jquery.validation/1.14.0/jquery.validate.min.js"></script>
<script src="js/jquery.validation/1.14.0/messages_zh.min.js"></script>
</head>
<body>
	<div class="topbar-wrap white">
		<div class="topbar-inner clearfix">
			<div class="topbar-logo-wrap clearfix">
				<h1 class="topbar-logo none">
					<a href="index.html" class="navbar-brand">后台管理</a>
				</h1>
			</div>
		</div>
	</div>
	<div class="container clearfix">
		<div class="sidebar-wrap">
			<div class="sidebar-title">
				<h1>菜单</h1>
			</div>
			<div class="sidebar-content">
				<ul class="sidebar-list">
					<li><a href="#"><i class="icon-font">&#xe003;</i>常用操作</a>
						<ul class="sub-menu">
							<li><a href="getStudentById?id=${student.id}"><i
									class="icon-font">&#xe008;</i>个人信息</a></li>
							<li><a href="getScore?id=${student.id}"><i
									class="icon-font">&#xe005;</i>成绩查询</a></li>
							<li><a href="getTeacher?id=${student.id}"><i
									class="icon-font">&#xe006;</i>教师信息</a></li>
						</ul></li>
					<li><a href="#"><i class="icon-font">&#xe018;</i>系统管理</a>
						<ul class="sub-menu">
							<li><a href="studup?id=${student.id}"><i
									class="icon-font">&#xe017;</i>个人信息设置</a></li>
							<li><a href="upwd?id=${student.id}"><i class="icon-font">&#xe037;</i>修改密码</a></li>

						</ul></li>
				</ul>
			</div>
		</div>
		<div class="main-wrap">

			<div class="crumb-wrap">
				<div class="crumb-list">
					<i class="icon-font"></i><a href="index.html">首页</a><span
						class="crumb-step">&gt;</span><span class="crumb-name">个人信息设置</span>
				</div>
			</div>

			<div class="result-wrap">


				<div class="result-content">
					<form action="/upstudent?id=${student.id}" method="post"
						id="myform" name="myform">
						<table class="insert-tab" width="100%">
							<tbody>
								<tr>
									<th></th>
									<td>以下为您当前的权限所能修改的内容</td>
								</tr>
								<tr>
									<th><i class="require-red">*</i>姓名：</th>
									<td><input class="common-text required" id="name"
										name="name" size="50" value="${student.name }" type="text">
									</td>
								</tr>
								<tr>
									<th><i class="require-red">*</i>电话：</th>
									<td><input class="common-text required" id="phone"
										name="phone" size="50" value="${student.phone }" type="text">
									</td>
								</tr>
								<tr>
									<th><i class="require-red">*</i>email：</th> <#if
									student.email??>
									<td><input class="common-text required" id="email"
										name="email" size="50" value="${student.email }" type="text">
									</td> <#else>
									<td><input class="common-text required" id="email"
										name="email" size="50" value="未填写" type="text"></td> </#if>

								</tr>
								<tr>
									<th><i class="require-red">*</i>地址：</th>
									<td><input class="common-text required" id="address"
										name="address" size="50" value="${student.address }"
										type="text"></td>
								</tr>
								<tr>
									<th><i class="require-red">*</i>照片：</th>
									<td><input name="photo" id="photo" type="file">
									<!--<input type="submit" onclick="submitForm('/jscss/admin/design/upload')" value="上传图片"/>--></td>
								</tr>
								<tr>
									<th><i class="require-red">*</i>生日：</th>
									<td><input class="common-text required" id="birth"
										name="birth" size="50"  type="text">
									</td>
								</tr>

								<tr>
									<th></th>
									<td><input class="btn btn-primary btn6 mr10" id="upbutton"
										value="发布" type="submit" > <input class="btn btn6"
										onclick="fanhui()" value="返回" type="button"></td>
								</tr>
							</tbody>
						</table>
					</form>
				</div>
			</div>

		</div>
	</div>
	<!--/main-->
	</div>
</body>
<script type="text/javascript">
laydate({
	  elem: '#birth', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎，因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
	  event: 'focus' //响应事件。如果没有传入event，则按照默认的click
	});
	$().ready(function() {
		/*返回一个validate对象，这个对象有一个form方法，返回的是是否通过验证*/
		return $("#myform").validate({
			rules : {
				name : {
					required : true,
					minlength : 2
				},
				phone : {
					required : true,
					maxlength : 11,
					minlength : 11
				},
				email : {
					required : true,
					email : true
				}

			},
			messages : {
				name : {
					required : "姓名不能为空"
				},
				phone : {
					required : "请输入正确的电话格式"
				},
				email : {
					required : "请输入正确的邮箱格式",

				}
			}
		});
	});
	function fanhui(){
		 window.history.go(-1) ;
		
	}
	
	
	
</script>
</html>